package fr.babos.test.utils 
{
	import flash.display.Sprite;
	import fr.babos.utils.StringUtils;
	
	/**
	 * ...
	 * @author ZoulouX
	 */
	public class StringUtilsTest extends Sprite 
	{
		
		public function StringUtilsTest() 
		{
			const nbr1:Number = 1053511235.4235;
			const nbr2:Number = 1053511235;
			const nbr3:Number = 5.1;
			const nbr4:Number = 5.154;
			
			trace("formatNumber");
			trace(StringUtils.formatNumber(nbr1));
			trace(StringUtils.formatNumber(nbr2));
			trace(StringUtils.formatNumber(nbr2, 0));
			trace(StringUtils.formatNumber(nbr3));
			trace(StringUtils.formatNumber(nbr4));
			
			trace("quickMustache");
			trace(StringUtils.quickMustache("Ceci est un {{test}} qui {{deboite}}", {
				test: "MEGA TEST",
				deboite: "MEGA DEBOITE"
			}));
		}
	}
}